#include "grid2d.h"

/*


Grid2D::Grid2D()
{
}

Grid2D::Grid2D(const vector<vector<int> > & vec)
{
    grid=vec;
}

Grid2D::Grid2D(const Grid2D* t)
{
    grid=t->grid;
}
Grid2D::Grid2D(const Grid2D& t)
{
    grid=t.grid;
}


void Grid2D::set(int val,int x, int y, int z)
{
    grid[x][y]=val;
}

int Grid2D::get(int x, int y, int z)
{
    return grid[x][y];

}

int Grid2D::size(int axis)
{
    if (grid.empty())return 0;
    if(axis==1)return grid.size();
    if(axis==0)return grid[0].size();
    return 0;
}
Grid* Grid2D::copy()
{
    return new Grid2D(this);
}
*/
